<?php
namespace PingNa\Controller;
use Common\Lib\Category;
use Think\Controller;
class IndexController extends HomeCommonController {
    private $siteId = 131; //首页ID
    private $brandId = 141;//品牌管理ID
    private $compandId = 137;//公司介绍
    private $newsId = 135;//新闻
    private $teamId = 140;//团队介绍
    private $JoinId = 153;//合作加盟

    private $companyCatalog = 132;
    public function index(){
        $siteInfo = M('category')->find($this->siteId);
        $compandInfo = M('category')->find($this->compandId);
        $compandTop =  Category::getTopCatalog($compandInfo['id']);
        $teamInfo = M('category')->find($this->teamId);
        $avtiveId = $this->siteId;
        $this->assign('avtiveId',$avtiveId);
        $this->assign('headInfo',$siteInfo);
        $this->assign('catalogInfo',$siteInfo);
        $this->assign('compandTop',$compandTop);

        $headHtml = $this->getTemplatePage('header.html');
        $footHtml = $this->getTemplatePage('foot.html');
        $head_navlist = $this->getTemplatePage('head_navlist.html');
        $this->assign('head_navlist',$head_navlist);
        $this->assign('headHtml',$headHtml);
        $this->assign('footHtml',$footHtml);
        $this->assign('brandId',$this->brandId);
        $this->assign('compandInfo',$compandInfo);
        $this->assign('newsId',$this->newsId);
        $this->assign('teamInfo',$teamInfo);
        $this->assign('JoinId',$this->JoinId);

        $compandCatalogInfo = M('category')->find($this->companyCatalog);
        $this->assign('compandCatalogInfo',$compandCatalogInfo);

        $this->display();



    }


}?>